package org.pupil.socket.server;

import io.netty.channel.ChannelHandlerContext;
import io.netty.channel.SimpleChannelInboundHandler;
import org.pupil.socket.codec.RpcProtocol;

/**
 * @Description: 服务消息处理器
 * @Author: pupil
 * @Date: 2024/07/07 下午 2:56
 */
public class SimpleChatServerHandler extends SimpleChannelInboundHandler<RpcProtocol> {
    @Override
    protected void channelRead0(ChannelHandlerContext ctx, RpcProtocol rpcProtocol) throws Exception {
        System.out.println(rpcProtocol.getBody());
    }
}
